﻿<%@ Page Title="页面添加/编辑" Language="C#" MasterPageFile="~/Admin/Master/Admin.Master"
    AutoEventWireup="true" CodeBehind="AdminPagesSet.aspx.cs" Inherits="Besture.UI.Admin.Modules.AdminPagesSet" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="server">
    <style type="text/css">
        .table-module01 th, td
        {
            padding: 8px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="server">
    <div class="editPage">
        <div class="tab-ct-wrap">
            <!-- Begin 选项卡1 -->
            <div class="tab1">
                <table class="table-module01" cellpadding="0" cellspacing="0">
                    <tbody>
                        <tr>
                            <th width="130" align="right">
                                页面名称：
                            </th>
                            <td>
                                <img src="/Admin/Themes/Images/indispensable.gif" align="absMiddle" /><asp:TextBox
                                    ID="Name" runat="server" MaxLength="30" Width="200px" class="input-text required"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <th width="130" align="right">
                                页面链接：
                            </th>
                            <td>
                                <cms:AdminPage ID="cmsAdminPage" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <th width="130" align="right">
                                所属模块：
                            </th>
                            <td>
                                <img src="/Admin/Themes/Images/indispensable.gif" align="absMiddle" /><asp:DropDownList
                                    runat="server" ID="ddlModulesID" class="required" />
                            </td>
                        </tr>
                        <tr>
                            <th width="130" align="right">
                                快捷图标：
                            </th>
                            <td>
                                <img src="/Admin/Themes/Images/dispensable.png" align="absMiddle" /><input id="btnSelectIcon"
                                    runat="server" type="button" class="SelectIconButton button" onclick="ShowIconTree(); return false;"
                                    value="" />
                                <asp:TextBox runat="server" ID="txtIcon" class="input-text SelectIconValue" Style="display: none"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <th width="130" align="right">
                                排序编号：
                            </th>
                            <td>
                                <img src="/Admin/Themes/Images/indispensable.gif" align="absMiddle" /><asp:TextBox
                                    ID="SortID" runat="server" MaxLength="5" Width="50px" class="input-text required number"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <th width="130" align="right">
                                &nbsp;
                            </th>
                            <td>
                                <span class="btn-sure-wrap">
                                    <asp:Button runat="server" ID="btnSubmit" CssClass="btn-sure btn-edit" Text="保存"
                                        OnClick="btnSubmit_Click" /></span> <span class="btn-cancel-wrap">
                                            <input type="button" class="btn-cancel" value="取消" onclick="location.href='AdminPagesList.aspx'" /></span>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
    <input type="hidden" id="hidEditID" runat="server" />
    <script type="text/javascript">
        function ShowIconTree() {
            var selectIcon = $(".SelectIconValue").val();
            var param = "icon=" + selectIcon;
            $.dialog({
                title: '选择图标',
                lock: true,
                content: 'url:/Admin/Dialog/ShowIconDialog.aspx?' + param + "&" + Math.random(),
                max: false,
                min: false,
                resize: true,
                width: '400px',
                height: '200px'
            });
        }
        

    </script>
</asp:Content>
